package com.huluobo.module_test_agency.repo

import com.huluobo.appbase.network.BaseReqData
import com.huluobo.appbase.network.RetrofitServiceBuilder
import com.huluobo.module_test_agency.api.AgencyApi
import com.huluobo.module_test_agency.bean.AgencyMessageReqData

/**
 * Created by lc on 2022/12/29.
 * 检测机构的数据仓库层
 */
class AgencyRepo {
    private var netWork = RetrofitServiceBuilder.createService(AgencyApi::class.java)

    suspend fun loadTestAgencyMessage(cityId: String): BaseReqData<AgencyMessageReqData>? {
        netWork?.let {
            return it.loadTestAgencyMessage(cityId)
        }
        return null
    }
}